﻿@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>裸钻库存</title>
    @Html.Partial("wap/team/commonMeta")
    <link rel="stylesheet" href="~/css/wap/team/product.css?v=@MvcWechat.Common.Version.Get" />
    <link href="~/Css/wap/team/stock.css?v=@MvcWechat.Common.Version.Get" rel="stylesheet" />
    <link href="~/Css/wap/team/teamorder.css?v=@MvcWechat.Common.Version.Get" rel="stylesheet"/>
    <link href="~/css/wap/team/photoswipe.css" type="text/css" rel="stylesheet" />
    <link rel="stylesheet" href="~/css/wap/team/product_item.css?v=@MvcWechat.Common.Version.Get" />
    <link rel="stylesheet" href="~/css/wap/team/item_app.css?v=@MvcWechat.Common.Version.Get" />
    <style type="text/css">
        h5.title_tab span {display: inline-block; width: 38%;float: left; color: #fff;}
        .batchDia_box .form-group input[type=text]{ width: 23%; }
        .batchDia_box{overflow-x: hidden;}
        h5.title_tab span:last-child { background: #ccc;}
        .modify {display: inline-block;padding: 1px 2px;cursor: pointer;margin-right: 5px;border: 1px solid #666;text-align: center;font-size: 14px;
            box-sizing: border-box;}
    </style>

</head>
<body>
<div class="views">
    <div class="view view-main">
        <div class="navbar">
            <div class="navbar-inner">
                <!-- 头部start -->
                <header id="common_header">
                    <div class="menu_icon_box" id="show_menu_btn">
                        <em class="menu-btn"></em>
                    </div>
                    <div class="menu_icon_box" id="hide_menu_btn">
                        <em class="colse-nav-btn"></em>
                    </div>
                    <h2>裸钻库存管理</h2>
                </header>
                <!-- 头部end -->
                <!-- 引入菜单 -->
                @Html.Partial("wap/team/teammenu")
                <div class="subnavbar" style="display: block;padding: 0;height:auto;background-color: #fff;padding-top: 5px;">
                    <div class="product_btn_box" style="height: auto;">
                        <span id="Shield_btn" style="display: none;">屏蔽</span>
                        <span id="term_app_btn"><a class="external" href="/wap/Team/DiasFilter?team=2">筛选</a></span>
                        <span id="add_btn" class="mgmtwhite_add_white"><a data-href="/wap/Team/DiaMan=2" href="#">新增</a></span>
                        <span data-value="1" class="Shelves_btn mgmtwhite_all_online">上架</span>
                        <span data-value="0" class="Shelves_btn mgmtwhite_white_offline">下架</span>
                    </div>
                    <div class="check_btn_box li_btn_box clearfix">
                        <ul>
                            <li class="mgmtwhite_modify_price"><button class="search_btn_b" id="bulk_pricing_btn" disabled="disabled">调价</button></li>

                            <li class="mgmtwhite_location"><button class="search_btn_b" id="edit_place_btn" disabled="disabled">所在地</button></li>

                            <li class="mgmtwhite_status"><button class="search_btn_b" id="edit_status_btn" disabled="disabled">状态</button></li>

                            <li class="mgmtwhite_arrival"><button class="search_btn_b" id="edit_arrival_btn" disabled="disabled">到货</button></li>

                            <li class="mgmtwhite_pay"><button class="search_btn_b" id="edit_payment_btn" disabled="disabled">付款</button></li>

                            <li class="mgmtwhite_power"><button class="search_btn_b" id="edit_purchase_btn" disabled="disabled">买价</button></li>

                            <li class="mgmtwhite_exchange"><button class="search_btn_b" id="edit_rate_btn" disabled="disabled">汇率</button></li>

                            <li class="mgmtwhite_delete"><button class="search_btn_b" id="del_choose_btn" disabled="disabled">删除</button></li>

                            <li style="display:none" class="mgmtwhite_stocks_tag"><button class="search_btn_b" id="recommend_btn" disabled="disabled">推荐</button></li>

                        </ul>
                    </div>
                    <table class="product_table" id="product_table_fixed">
                        <thead>
                        <tr>
                            <th style='width:8%' class="check_rel" id="th_check_all">
                                <div class='check_list_box'>
                                    <span class='checkbox' name='checkbox_all'></span>
                                </div>
                            </th>
                            <th style='width:10%'>重量</th>
                            <th style='width:10%'>颜色</th>
                            <th style='width:10%'>净度</th>
                            <th style='width:10%'>切工</th>
                            <th style='width:10%'>抛光</th>
                            <th style='width:10%'>对称</th>
                            <th style='width:10%'>荧光</th>
                            <th class="white_show" style='width:15%'>退点<i class="sort sort_normal" data-sort="DiscountReturn"></i></th>
                            <th style="width:15%" class="fancy_show">单价<i class="sort sort_normal" data-sort="RMBPerCarat"></i></th>
                            <th style='width:15%'>总价<i class="sort sort_normal"  data-sort="RMBPerGrain"></i></th>
                        </tr>
                        </thead>
                        <tbody id="stock_body_hide">

                        </tbody>
                    </table>
                </div>
            </div>
        </div>
        <div class="pages navbar-through toolbar-through">
            <div data-page="index" class="page">
                <div class="page-content" id="app_no_header">
                    <!--内容区start-->
                    <div id="inventory" style="background-color: #fff;">
                        <table class="product_table table_hide" id="product_table">
                            <thead>
                            <tr>
                                <th style='width:8%'></th>
                                <th style='width:10%'>重量</th>
                                <th style='width:10%'>颜色</th>
                                <th style='width:10%'>净度</th>
                                <th style='width:10%'>切工</th>
                                <th style='width:10%'>抛光</th>
                                <th style='width:10%'>对称</th>
                                <th style='width:10%'>荧光</th>
                                <th class="white_show" style='width:15%'>退点<i class="sort sort_normal" data-sort="DiscountReturn"></i></th>
                                <th style="width:15%" class="fancy_show">单价<i class="sort sort_normal" data-sort="RMBPerCarat"></i></th>
                                <th style='width:15%'>总价<i class="sort sort_normal"  data-sort="RMBPerGrain"></i></th>
                            </tr>
                            </thead>
                            <tbody id="stock_body">

                            </tbody>
                        </table>
                    </div>
                    <div id="endload" style="text-align: center;line-height: 26px;font-size: 14px"></div>
                    <p class="totalcount">显示前500条<a class="diasType"></a></p>
                    <!--内容区end-->
                </div>
            </div>
        </div>
        <!--上架-->
        <div class="popup Shelves_box">
            <div class="pop pop-radius">
                <span class="colse_popbox close-popup">X</span>
                <h5 id="Shelves_title">上架</h5>
                <form class="form-inline _transfer clearfix" style="padding: 5px 5px 5px 30px;">
                    <div class="form-group">
                        <label class="checkbox-inline" style="width:100%;text-align: left;">选择上架类型：</label>
                        <div class="form-group">
                            <label for="for_choose">
                                <input id="for_choose" type="radio" name="Shelves" checked="checked" value="3">勾选
                            </label>
                            <label for="for_white">
                                <input id="for_white" type="radio" name="Shelves" value="0">白钻
                            </label>
                            <label for="for_fancy">
                                <input id="for_fancy" type="radio" name="Shelves" value="1">彩钻
                            </label>
                        </div>
                    </div>
                    <div class="confirm">
                        <span><input type="button" class="btn btn-danger supbtn cancel close-popup" value="取消" /></span>
                        <span><input type="button" class="btn btn-danger supbtn" id="Shelves_btn" value="确定" /></span>                  <!-- onclick="ModifyPurchaseUserID();" -->
                    </div>
                </form>
            </div>
        </div>
        <!--上架-->

        <!--下架-->
        <div class="popup offShelves_box">
            <div class="pop pop-radius">
                <span class="colse_popbox close-popup">X</span>
                <h5>下架</h5>
                <form class="form-inline _transfer clearfix" style="padding: 5px 5px 5px 30px;" id="_transfer" method="post">
                    <div class="form-group">
                        <label class="checkbox-inline">选择下架类型：</label>

                    </div>
                    <div class="confirm">
                        <span><input type="button" class="btn btn-danger supbtn cancel close-popup" value="取消" /></span>
                        <span><input type="submit" class="btn btn-danger supbtn" value="确定" /></span>                  <!-- onclick="ModifyPurchaseUserID();" -->
                    </div>
                </form>
            </div>
        </div>
        <!--下架-->
        <!--所在地-->
        <div class="popup" id="ModPlace_box">
            <div class="pop pop-radius">
                <span class="colse_popbox close-popup">X</span>
                <h5>修改所在地</h5>
                <form class="form-inline clearfix" style="padding: 5px 5px 5px 30px;">
                    <div class="form-group">
                        <label class="checkbox-inline">所在地：</label>
                        <select class="form-control" id="place_box"></select>
                    </div>
                    <div class="confirm">
                        <span><input type="button" class="btn btn-danger supbtn cancel close-popup" value="取消" /></span>
                        <span><input type="button" class="btn btn-danger supbtn" id="place_btn" value="确定" /></span>                  <!-- onclick="ModifyPurchaseUserID();" -->
                    </div>
                </form>
            </div>
        </div>
        <!--所在地-->
        <!--状态-->
        <div class="popup" id="ModStatus_box">
            <div class="pop pop-radius">
                <span class="colse_popbox close-popup">X</span>
                <h5>修改状态</h5>
                <form class="form-inline clearfix" style="padding: 5px 5px 5px 30px;">
                    <div class="form-group">
                        <label class="checkbox-inline">状态：</label>
                        <select class="form-control" id="_batchstatus"></select>
                    </div>
                    <div class="form-group">
                        <label  class="checkbox-inline" style="vertical-align: top;">备注：</label>
                        <textarea name="Remark"   class="form-control" style="height: 100px;width:64%" id="ModStatus_Comments"></textarea>
                    </div>
                    <p>备注：多选会覆盖原来的备注</p>
                    <div class="confirm">
                        <span><input type="button" class="btn btn-danger supbtn cancel close-popup" value="取消" /></span>
                        <span><input type="button" class="btn btn-danger supbtn" id="status_btn" value="确定" /></span>                  <!-- onclick="ModifyPurchaseUserID();" -->
                    </div>
                </form>
            </div>
        </div>
        <!--状态-->
        <!--付款-->
        <div class="popup" id="pay_box">
            <div class="pop pop-radius">
                <span class="colse_popbox close-popup">X</span>
                <h5>付款</h5>
                <form class="form-inline" style="padding: 5px 5px 5px 30px;" method="post" id="_receipt">
                    <div class="form-group" style="display: none">
                        <label for="InventoryID" class="checkbox-inline">InventoryIDs：</label>
                        <input type="text" class="form-control" id="">
                    </div>
                    <div class="form-group">
                        <label>应付金额:</label>
                        <span class="CurrentUSD"><b class="check_four stars_tip" id="_receipt_usd"></b>$</span>
                        <span class="RMBorUSD" style="">&nbsp;&nbsp;&nbsp;或&nbsp;&nbsp;&nbsp;</span>
                        <span class="CurrentRMB"><b class="check_fiv stars_tip" id="_receipt_rmb">0</b>￥</span>
                    </div>
                    <div class="form-group">
                        <label for="BankID">付款账户:</label>
                        <select id="_receiptBankID" class="form-control" name="BankID">
                        </select>
                        <!--<a title="部分付款"  onclick="PayAmountNum();">部分付</a>-->
                    </div>
                    <div class="form-group">
                        <label>付款日期:</label>
                        <div class="list-block" style="margin: 0;">
                            <ul>
                                <li>
                                    <div class="item-content" style="padding-left: 0;">
                                        <div class="item-inner">
                                            <div class="item-input">
                                                <input type="text" name="ArrivalTime" class="form-control date_input" placeholder="选择日期" readonly id="receiptarrivalTime">
                                            </div>
                                        </div>
                                    </div>
                                </li>
                            </ul>
                        </div>
                    </div>
                    <div class="confirm">
                        <span><input type="button" class="btn btn-danger supbtn cancel close-popup" name="qx" value="取消" /></span>
                        <input type="submit" class="btn btn-danger supbtn" id="pay_box_btn" value="确定" />
                    </div>
                </form>
            </div>
        </div>
        <!--付款-->
        <!--到货-->
        <div class="popup" id="arrival_box">
            <div class="pop pop-radius">
                <span class="colse_popbox close-popup">X</span>
                <h5>到货</h5>
                <form class="form-inline clearfix" style="padding: 5px 5px 5px 30px;">
                    <div class="form-group">
                        <label class="checkbox-inline">到货时间：</label>
                        <div class="list-block" style="margin: 0;">
                            <ul>
                                <li>
                                    <div class="item-content" style="padding-left: 0;">
                                        <div class="item-inner">
                                            <div class="item-input">
                                                <input type="text" class="date_input" placeholder="选择日期" readonly id="arrival_time">
                                            </div>
                                        </div>
                                    </div>
                                </li>
                            </ul>
                        </div>
                    </div>
                    <div class="confirm">
                        <span><input type="button" class="btn btn-danger supbtn cancel close-popup" value="取消" /></span>
                        <span><input type="button" class="btn btn-danger supbtn" id="arrival_btn" value="确定" /></span>                  <!-- onclick="ModifyPurchaseUserID();" -->
                    </div>
                </form>
            </div>
        </div>
        <!--到货-->
        <!-- 调价start-->
        <div class="popup batchDia_box" id="batchDia_box">
            <div class="pop">
                <span class="colse_popbox close-popup">X</span>
                <h5>调价</h5>
                <div class="title_tab" id="title_tab">
                    <span data-type="1" class="active">批量调价</span>
                    <span class="allPrice" data-type="2">统一价</span>
                </div>
                <form class="form-inline" style="padding: 5px 5px 5px 30px;" id="_modPrice">
                    <div class="form-group" style="display: none">
                        <label for="OrderID" class="checkbox-inline">订单IDs：</label>
                        <input type="text" class="form-control" id="_ids">
                    </div>
                    <div class="form-group modInputPrice" id="modInputPrice">
                        <label for="radio_discount">
                            <input type="radio" name="batchDia" value="0" data-val="1" checked="checked" id="radio_discount" />原退点&nbsp;&nbsp;&nbsp;
                        </label>
                        <label for="radio_price">
                            <input type="radio" name="batchDia" value="0" data-val="2" id="radio_price" />原 $/Pcs&nbsp;&nbsp;&nbsp;
                        </label>
                        <label for="radio_per_price">
                            <input type="radio" name="batchDia" value="0" data-val="3" id="radio_per_price" />原 $/Ct
                        </label>
                    </div>
                    <div class="form-group modPrice" data-value="1">
                        <label for="OrderID" class="checkbox-inline">原退点：</label>
                        <input type="text" class="form-control o_modPrice" id="OriginDiscountReturn">
                    </div>
                    <div class="form-group modPrice" data-value="2" style="display: none">
                        <label for="OrderID" class="checkbox-inline">原 $/Pcs：</label>
                        <input type="text" class="form-control o_modPrice" id="OriginUSDPerGrain">
                    </div>
                    <div class="form-group modPrice" data-value="3" style="display: none">
                        <label for="OrderID" class="checkbox-inline">原 $/Ct：</label>
                        <input type="text" class="form-control o_modPrice" id="OriginUSDPerCarat">
                    </div>
                    <br />
                    <div class="confirm">
                        <span><input type="button" class="btn btn-danger supbtn cancel close-popup" value="取消" /></span>
                        <span><input type="button" class="btn btn-danger supbtn" id="batchDia" value="确定" /></span>
                    </div>
                </form>
            </div>
        </div>
        <!--调价end -->
        <!--买价start-->
        <div class="popup" id="ModPurchasePrice_box">
            <div class="pop pop-radius">
                <span class="colse_popbox close-popup">X</span>
                <h5>修改买价</h5>
                <form class="form-inline clearfix" id="_modPurchasePrice" style="padding: 5px 5px 5px 30px;">
                    <div class="form-group">
                        <label class="checkbox-inline">倍数：</label>
                        <input class="form-control" type="number" name="factor" id="_purchasePrice" />
                    </div>
                    <div class="confirm">
                        <span><input type="button" class="btn btn-danger supbtn cancel close-popup" name="qx" value="取消" /></span>
                        <span><input type="submit" class="btn btn-danger supbtn" value="确定" /></span>                  <!-- onclick="ModifyPurchaseUserID();" -->
                    </div>
                </form>
            </div>
        </div>
        <!--买价end-->
        <!--汇率start-->
        <div class="popup" id="ModRate_box">
            <div class="pop pop-radius">
                <span class="colse_popbox close-popup">X</span>
                <h5>修改汇率</h5>
                <form class="form-inline clearfix" id="_modRate" style="padding: 5px 5px 5px 30px;">
                    <div class="form-group">
                        <label class="checkbox-inline">汇率：</label>
                        <input class="form-control" type="number" name="value" id="mod_rate" />
                    </div>
                    <div class="confirm">
                        <span><input type="button" class="btn btn-danger supbtn cancel close-popup" name="qxf" value="取消" /></span>
                        <span><input type="submit" class="btn btn-danger supbtn" value="确定" /></span>                  <!-- onclick="ModifyPurchaseUserID();" -->
                    </div>
                </form>
            </div>
        </div>
        <!--汇率end-->
        <!-- 联系方式start-->
        <div class="popup Contact_box">
            <div class="pop">
                <span class="colse_popbox close-popup">X</span>
                <h5>联系方式</h5>
                <form class="form-inline contact-form form-box" style="padding: 5px 5px 30px 30px;">
                    <div class="form-group">
                        <label for="ShortName">简称：</label>
                        <input class="form-control" type="text" name="ShortName" id="_shortName" placeholder="简称" disabled/>
                    </div>
                    <div class="form-group">
                        <label for="Company">全称：</label>
                        <input class="form-control" type="text" name="Company" id="_company" placeholder="全称" disabled/>
                    </div>
                    <div class="form-group">
                        <label for="Name">联系人：</label>
                        <input class="form-control" type="text" name="Name" id="_name" placeholder="Name" disabled/>
                    </div>
                    <div class="form-group">
                        <label for="QQ">QQ：</label>
                        <input class="form-control" type="text" name="QQ" id="_qq" placeholder="QQ" disabled/>
                    </div>
                    <div class="form-group">
                        <label for="Telephone">固话：</label>
                        <input class="form-control" type="text" name="Telephone" id="_telephone" placeholder="固话" disabled/>
                    </div>
                    <div class="form-group">
                        <label for="WeChat">微信：</label>
                        <input class="form-control" type="text" name="WeChat" id="_wechat" placeholder="WeChat" disabled/>
                    </div>
                    <div class="form-group">
                        <label for="Email">邮箱：</label>
                        <input class="form-control" type="text" name="Email" id="_email" placeholder="Email" disabled/>
                    </div>
                    <div class="form-group">
                        <label for="Skype">Skype：</label>
                        <a href="skype:david_tompeng?call"  id="_skype">
                            <span></span>
                        </a>
                    </div>
                    <div class="form-group">
                        <label for="MobilePhone">手机：</label>
                        <input class="form-control" type="text" name="MobilePhone" id="_mobilephone" placeholder="MobilePhone" disabled/>
                    </div>
                    <div class="form-group">
                        <label for="Website">网站：</label>
                        <input class="form-control" type="text" name="Website" id="_website" placeholder="网站" disabled/>
                    </div>
                    <div class="form-group">
                        <label for="RapID">RapID：</label>
                        <input class="form-control" type="text" name="RapID" id="_rapid" placeholder="RapID" disabled/>
                    </div>
                    <div class="form-group" style="margin-left: 0;">
                        <label for="Address">地址：</label>
                        <input class="form-control" type="text" name="Address" id="_address" placeholder="Address" disabled/>
                    </div>
                </form>
            </div>
        </div>
        <!--联系方式end -->

        <!-- 修改推荐start -->
        <div class="popup" id="tag_box">
            <div class="pop pop-radius">
                <span class="colse_popbox close-popup">X</span>
                <h5>推荐</h5>
                <div class="title_tab" id="title_tab_recommend">
                    <span class="active" data-type="1">设置</span>
                    <span data-type="2">推荐</span>
                </div>
                <div class="form-group modPrice" data-value="1" id="factor_recommend" style="min-height:150px;height: auto">
                    <form class="home_form" id="recommend_form">

                    </form>
                    <div style="margin:15px 85px">
                        <input type="submit" class="btn btn-danger supbtn" style="margin: 0px !important;" id="recommend_inp" value="确定" />
                    </div>
                </div>

                <div class="form-group modPrice" data-value="2" id="price_recommend" style="display: none;min-height:150px;height: auto">
                    <table  class="table table-condensed table-bordered" id="recommend_table" style="width:95%;margin-left:3%">
                        <thead id="recommend_thead" style="width: 100%">
                        <tr style="color:#555">
                            <th>推荐</th>
                            <th>排序</th>
                            <th>启用</th>
                            <th>操作</th>
                        </tr>
                        </thead>
                        <tbody id="recommend_body">
                        </tbody>
                    </table>
                    <form class="form-inline" style="padding: 0px 5px 5px 35px;" id="_recommend">
                        <div class="form-group" style="color:#555;">
                            <input type="input" style="width:45%;float:left" class="form-control" name="Recommends" placeholder="推荐名称" id="recommend" data-id=""/>
                            <input type="button" style="margin-left:30px;" class="btn btn-danger supbtn addRecommend" onclick="mobileDia()"  value="添加" />
                            <div style="clear:both"></div>
                            <input type="checkbox" style="width:5%" checked="checked" id="remember_recommend" />是否启用
                        </div>
                    </form>
                </div>
            </div>
        </div>
        <!-- 推荐end -->



        <!--视频弹框-->
        <div class="popup popup-services">
            <div class="content-block">
                <p style="padding: 10px 0 0 10px;"><a href="#" class="close-popup">返回</a></p>
            </div>
            <div class="pages navbar-through toolbar-through">
                <div data-page="index" class="page">
                    <div class="page-content" id="app_no_header">
                        <!--内容区start-->
                        <div class="parcels_page" style="width:100%;">
                            <div id="PhotoSwipeTarget"></div>
                            <div id="Indicators">
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>




    </div>
</div>
</body>
</html>
@Html.Partial("wap/team/commonTeamJs")
<script>
    var isHideSupplier="@ViewBag.IsHideSupplier"; //1显示 2隐藏
        var PARAMS=@Html.Raw(ViewBag.Param);
        var list=@Html.Raw(ViewBag.PurchaseAgents);
</script>
<script src="~/Js/jquery.validate.min.js"></script>
<script src="~/Js/wap/team/format.js?v=@MvcWechat.Common.Version.Get"></script>
<script src="~/js/wap/team/mgmt_stock.js?v=@MvcWechat.Common.Version.Get"></script>
<script type="text/javascript" src="~/js/wap/team/klass.min.js"></script>
<script type="text/javascript" src="~/js/wap/team/code.photoswipe.jquery-3.0.5.min.js"></script>
<script type="text/javascript" src="~/js/wap/team/pinchzoom.js"></script>
